﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchContactPeople.aspx.cs" Inherits="SearchContactPeople" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
</head>
<body>
	<form id="form1" runat="server">
		<div>
			<asp:ScriptManager ID="ScriptManager1" runat="server">
			</asp:ScriptManager>
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
				<ContentTemplate>
					<asp:Label ID="Label1" runat="server" AssociatedControlID="txtFirstName" Text="First name like"></asp:Label>
					<asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
					<asp:Label ID="Label2" runat="server" AssociatedControlID="txtLastName" Text="Last name like"></asp:Label>
					<asp:TextBox ID="txtLastName" runat="server" Width="62px"></asp:TextBox>
					<asp:Label ID="Label3" runat="server" AssociatedControlID="lstType" Text="Type"></asp:Label>
					<asp:DropDownList ID="lstType" runat="server" AppendDataBoundItems="false">
						<asp:ListItem Value="" Text="&lt;All&gt;"></asp:ListItem>
					</asp:DropDownList>
					<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="Search" />
					<br />
					<br />
					<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="ObjectDataSource1">
						<Columns>
							<asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True" SortExpression="Id" />
							<asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
							<asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
							<asp:BoundField DataField="MiddleName" HeaderText="MiddleName" SortExpression="MiddleName" />
							<asp:BoundField DataField="DateOfBirth" HeaderText="DateOfBirth" SortExpression="DateOfBirth" />
						</Columns>
					</asp:GridView>
					<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList" TypeName="Spaanjaars.ContactManager.Bll.ContactPersonManager" OnSelecting="ObjectDataSource1_Selecting">
						<SelectParameters>
							<asp:Parameter Name="contactPersonCriteria" Type="Object" />
						</SelectParameters>
					</asp:ObjectDataSource>
				</ContentTemplate>
			</asp:UpdatePanel>
		</div>
	</form>
</body>
</html>
